
class Shape{
    public void Ishape(){
        System.out.println("图形！");
    }
}

class Cycle extends Shape{
    @Override
    public void Ishape() {
        System.out.println("圆");
    }
}

class Rect extends Shape{
    @Override
    public void Ishape(){
        System.out.println("矩形");
    }
}
public class test {
    public static void Func(Shape shape){
        shape.Ishape();
    }
    public static void main(String[] args) {
        /*Shape shape1 = new Cycle();
        shape1.Ishape();
        Shape shape2 = new Rect();
        shape2.Ishape();*/
        Cycle cycle = new Cycle();
        Rect rect = new Rect();
        Func(cycle);
        Func(rect);
    }
}
